/***************************************************************************
 创建者: 华磊
 开始时间: 2018.8.14
 copyright: (C) 华友高科
 修改说明: (每次有修改就添加一条，带有 修改人，修改时间，修改描述)
 example (1) hualei 2017.5.8 类的具体实现代码编写

 ***************************************************************************/
#include "regconditionblock.h"

RegConditionBlock::RegConditionBlock()
{
}

QDataStream& operator <<(QDataStream &out,RegConditionBlock &myVector)
{
    out << myVector.i << myVector.j << myVector.k <<
           (quint32)myVector.valueType << (quint32)myVector.rightVarType<<
           myVector.val;

    return out;
}

QDataStream& operator >>(QDataStream &in,RegConditionBlock &myVector)
{
    quint32 valueType ;
    quint32 rightVarType;

    in >> myVector.i >> myVector.j >> myVector.k
       >> valueType >> rightVarType >> myVector.val;

    myVector.valueType = (VALUE_TYPE)valueType;
    myVector.rightVarType = (ADDRESSING_TYPE)rightVarType;

    return in;
}
